import request from "@/utils/request";
import { AxiosPromise } from "axios";
import { ModelList } from "./types";

// 数据报表 - 订单列表
export function getOrderList(
  data: ModelList
): AxiosPromise<Record<string, any>> {
  return request({
    url: "/api/operation/Reporting/recharge-report",
    method: "post",
    data,
  });
}

// 数据报表 - 推广数据
export function getPromotionList(
  data: ModelList
): AxiosPromise<Record<string, any>> {
  return request({
    url: "/api/operation/Reporting/promotion-report",
    method: "post",
    data,
  });
}

// 数据报表 - 看剧统计
export function getOperaList(
  data: ModelList
): AxiosPromise<Record<string, any>> {
  return request({
    url: "/api/operation/Reporting/opera-report",
    method: "post",
    data,
  });
}

// 数据报表 - 剧集分析
export function getEpisodeReport(
  data: ModelList
): AxiosPromise<Record<string, any>> {
  return request({
    url: "/api/operation/Reporting/episode-report",
    method: "post",
    data,
  });
}
